<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<script type="text/javascript" src="<%=basePath%>js/jquery-2.1.0.min.js"></script>
<script type="text/javascript" src="<%=basePath%>js/vue.min.js"></script>
<link rel="stylesheet" href="<%=basePath%>css/layui/css/layui.css">
<script type="text/javascript"
	src="<%=basePath%>js/stockManage/showStock.js"></script>
<script type="text/javascript" src="<%=basePath%>js/BaseUtile.js"></script>

<title>库存查询</title>
</head>
<body style="margin: 3%">
		<div>
			<label style="font-size: 30px">库存查询</label>
		</div>
		<div class="layui-input-inline">
			<div style="float: left">
				<input id="inputSearchWords" class="layui-input"
					placeholder="编码/名称" />
			</div>
			<div style="float: left">
				<button id="searchStockButton" class="layui-btn layui-btn-fluid">搜索</button>
			</div>
		</div>
	<div id="stockListDiv">
		<table class="layui-table">
			<thead>
				<tr>
					<th>商品编码</th>
					<th>商品名称</th>
					<th>库存</th>
					<th>单位</th>
				</tr>
			</thead>
			<tbody>
				<tr v-for="(item ,index) in items"  v-if="item.quantity>0" >
					<th>{{item.materialId}}</th>
					<th>{{item.material.materialName}}</th>
					<th>{{item.quantity}}</th>
					<th>{{item.material.unit.unitName}}</th>
				</tr>
			</tbody>
		</table>
	</div>

	<script type="text/javascript" src="<%=basePath%>css/layui/layui.js"></script>
	<script>
		layui.use('form', function() {

		});
	</script>
</body>
</html>